package org.example.commons;

import lombok.Getter;

@Getter
public enum ResponseCode {

    SUCCESS(200, "成功"),
    VERIFY(1001, "校验异常"),
    ERROR(500, "服务器内部错误"),
    ;

    // code
    private int code;

    // message
    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
